<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="产品编码" prop="GWER001">
                <!--<el-select v-model="form.GWER001" size="small" placeholder="请选择产品编码" :disabled="!isAdd" @change="change">
                    <el-option v-for="item in selectOptions.options1"
                               :key="item.GWAM001"
                               :label="item.GWAM001 + item.GWAML003"
                               :value="item.GWAM001">
                    </el-option>
                </el-select>-->
                <el-input v-model="form.GWER001" readonly :disabled="!isAdd" clearable @clear="clearGWER001">
                    <i class="el-icon-search el-input__icon" @click="openCp" slot="suffix" v-show="isAdd"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="品名">
                <el-input v-model="form.GWAML003" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="规格">
                <el-input v-model="form.GWAML004" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="币种" prop="GWER002">
                <el-select v-model="form.GWER002" size="small" placeholder="请选择币种" clearable>
                    <el-option v-for="item in selectOptions.options2"
                               :key="item.GWAC001"
                               :label="item.GWAC001 + item.GWACL003"
                               :value="item.GWAC001">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="交易单位" prop="GWER003">
                <el-select v-model="form.GWER003" size="small" placeholder="请选择交易单位" clearable>
                    <el-option v-for="item in selectOptions.options3"
                               :key="item.GWAB001"
                               :label="item.GWAB001 + item.GWABL003"
                               :value="item.GWAB001">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="成本归属年月" prop="GWER004">
                <el-date-picker
                        type="month"
                        v-model="form.GWER004"
                        value-format="yyyy-MM"
                        placeholder="选择归属年月"
                        :disabled="!isAdd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="实际人工成本">
                <el-input type="number" min="0"  v-model="form.GWER005"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="实际材料成本">
                <el-input type="number" min="0" v-model="form.GWER006"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="实际水电成本">
                <el-input type="number" min="0" v-model="form.GWER007"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="实际折旧成本">
                <el-input type="number" min="0" v-model="form.GWER008"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="实际其他成本">
                <el-input type="number" min="0" v-model="form.GWER009"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="实际期间费用">
                <el-input type="number" min="0" v-model="form.GWER010"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="ERP营运中心" prop="GWERPLANT">
                <el-input v-model="form.GWERPLANT" :readonly="!isAdd" :disabled="!isAdd"></el-input>
                <!--<el-select v-model="form.GWERPLANT" size="small" placeholder="请选择营运中心">-->
                    <!--<el-option v-for="item in selectOptions.options4"-->
                               <!--:key="item.GWEA001"-->
                               <!--:label="item.GWEA001 + item.GWEA002"-->
                               <!--:value="item.GWEA001">-->
                    <!--</el-option>-->
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="备注">
                <el-input type="textarea" v-model="form.GWER012"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwei023_edit"], $.noop);
</script>